﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="MachineList.aspx.cs" Inherits="BySoft.Web.Site.MasteData.MachineList" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
	<script language="javascript" type="text/javascript">
        
    </script>
	</asp:Content>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    
    <h1 class="tit">基础资料 >> 机台代码资料</h1>
    <br />
    <%--查询条件--%>
    <div class="searchTable">
        <table cellpadding="0" cellspacing="0">
		    <tr>
                <th class="left2">
                    机台代码：
                </th>
                <td class="right2">
                    <asp:TextBox CssClass="fullWidth" ID="txtMachineID" runat="server"></asp:TextBox>
                </td>
                <th class="left2">
                    机台名称：
                </th>
                <td class="right2">
                    <asp:TextBox CssClass="fullWidth" ID="txtMachineName" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <th class="left2">
                    机台类别：
                </th>
                <td class="right2">
                    <asp:DropdownList CssClass="fullWidth" ID="ddlMachineType" runat="server"></asp:DropdownList>
                </td>
                <th class="left2">
                    
                </th>
                <td class="right2">
                  
                </td>
            </tr>
        </table>
        <br />
        <div class="btnStylef">
            <label class="btnStyleb png_bg">
                <asp:Button Text="查询" runat="server" ID="btnQuery" class="png_bg" OnClick="btnQuery_Click" />
            </label>
            <label class="btnStylec png_bg">
                <input type="button" runat="server" id="btnAdd" value="新增" onclick="window.location = 'MachineAdd.aspx'" class="png_bg" /></label>
        </div>
    </div>
    <%--列表--%>
    <div class="tableStyle" runat="server">
        <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
            AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound"
            OnRowCommand="grdResult_RowCommand" BorderWidth="0px" GridLines="None">
            <Columns>
				<asp:TemplateField>
                        <HeaderTemplate>
                            机台代码
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblMachineID" runat="server" Text='<%#Eval("MachineID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            机台名称
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblMachineName" runat="server" Text='<%#Eval("MachineName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                 <asp:TemplateField>
                        <HeaderTemplate>
                            标准产能
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblStandardTime" runat="server" Text='<%#Eval("StandardTime") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                 <asp:TemplateField>
                        <HeaderTemplate>
                            机台类别
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblMachineTypeName" runat="server" Text='<%#Eval("MachineTypeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                
                   
                    <asp:TemplateField>
                        <HeaderTemplate>
                            查看
                        </HeaderTemplate>
                        <HeaderStyle Width="35px" />
                        <ItemTemplate>
                            <asp:ImageButton CommandName="viewdata" CommandArgument='<%#Eval("MachineID") %>'
                                ImageUrl="../App_Themes/Common_CSS/images/GridDetail.gif" runat="server" ID="ibtnView" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderStyle Width="35px" />
                        <HeaderTemplate>
                            编辑
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:ImageButton CommandName="edi" CommandArgument='<%#Eval("MachineID") %>' ImageUrl="../App_Themes/Common_CSS/images/GridEdit.gif"
                                runat="server" ID="ibtnEdi" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderStyle Width="35px" />
                        <HeaderTemplate>
                            删除
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ImageUrl="../App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                ID="ibtnDel" />
                            <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("MachineID") %>'
                                CommandName="del" />
                        </ItemTemplate>
                    </asp:TemplateField>
            </Columns>
        </asp:SGridView>
        <div style="padding-top: 5px" align="right">
            <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
        </div>
    </div>
</asp:Content>

